package org.jeecg.modules.xxgx.djgl.enums;

import lombok.Getter;

/**
 * @PROJECT_NAME: swgxpt3
 * @DESCRIPTION:凭证类型
 * @AUTHOR: shiyanyan
 * @DATE: 2023/5/31 11:54
 */
@Getter
public enum PzlxEnum {
    QDFP("全电发票","01"),
    ZZSFP("增值税发票","02"),
    ZZSPP("增值税普通发票","03"),
    YYSFP("营业税发票","04"),
    CZPJ("财政票据","05"),
    FYCJS("法院裁决书","06"),
    QSWSZM("契税完税凭证","07"),
    OTHER_INVOICE("其他发票类","08"),
    OTHER_VOUCHER("其他扣除凭证","09");


    private String name;
    private String value;

    PzlxEnum(String name, String value) {
        this.name = name;
        this.value = value;
    }
   public static PzlxEnum getDataByName(String name){
        for (PzlxEnum pzlxEnum : PzlxEnum.values()) {
            if (name.equals(pzlxEnum.getName())) {
                return pzlxEnum;
            }
        }
        return null;
    }
}
